package model;

/**
 * @author Mikhail Larinskiy
 */
public class Item {
	private final Type type;

	private String name;
	private Periodicity periodicity = Periodicity.NONE;


	public Item(Type type, String name, Periodicity periodicity) {
		this.type = type;
		this.name = name;
		this.periodicity = periodicity;
	}

	public Type getType() {
		return type;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Periodicity getPeriodicity() {
		return periodicity;
	}

	public void setPeriodicity(Periodicity periodicity) {
		this.periodicity = periodicity;
	}
}
